package com.qc.controller.web;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.qc.service.UserService;

@Controller
@RequestMapping("/web")
public class WebUserController{
    
    @Resource
    private UserService userService;
    
    
    /**
     * 跳转到注册页面
     * @return
     */
    @RequestMapping(value = "/toRegister", method = RequestMethod.POST)
    public ModelAndView toRegister() {
        ModelAndView mav = new ModelAndView("user/register");
        
        return mav;
   
   }
    
    @RequestMapping(value = "/toView", method = RequestMethod.GET)
    public ModelAndView toView() {
        ModelAndView mav = new ModelAndView("business/add");
        
        return mav;
   
   }
}
